// JavaScript Document
define(function (require, exports, module) {
	///alert("TabController");
	
	var List=function(){
		this.items=new Array();
	};
	List.prototype.focusNum=0;
	List.prototype.setFocusNum=function(focusNum){
		this.focusNum=focusNum
		this.focusControl(focusNum);
	}
	List.prototype.focusControl=function(focusNum){
		this.total=this.items.length;
		for(var i=0;i<this.total;i++){
			this.items[i].focusClose();
		}
		if(this.total>1){
			this.items[focusNum].focusOpen();
		}else{
			this.items[0].focusOpen();
		}
	};
	module.exports = List;
})